package com.mall.generate;
import java.util.Random;
public class Test {
	public static void main(String[] args) throws Exception {
//		String filePath = "D:/t/";  
//        String fileName = "zxing.png";  
//		String content = "http://www.caidijia.com";// 内容
//		int width = 200; // 图像宽度
//		int height = 200; // 图像高度
//		String format = "png";// 图像类型
//		Map<EncodeHintType, Object> hints = new HashMap<EncodeHintType, Object>();
//		hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");
//		BitMatrix bitMatrix = new MultiFormatWriter().encode(content, BarcodeFormat.QR_CODE, width, height, hints);// 生成矩阵
//		Path path = FileSystems.getDefault().getPath(filePath, fileName);
//		MatrixToImageWriter.writeToPath(bitMatrix, format, path);// 输出图像
//		System.out.println("输出成功.");
		for (int i = 0; i < 100; i++) {
			System.out.println(new Random().nextInt(100));
		}
		
	}

}
